﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CouponTicketList.aspx.cs" Inherits="ZLCMS.Web.SystemManage.Basics.Shop.Coupon.CouponTicketList" %>

<%=_framePage.GetPagerFormHtml(Request.RawUrl)%>


<%=_framePage.TabInfoHtml()%>

<form id="pageForm" class="pageForm" >
<div class="pageHeader">
	<div class="searchBar">

        <table class="searchContent">
        	<tr>
        		<td>编码</td>
        		<td><input type="text" cond="code" value="<%=Request["code"] %>"/>
                <input type="hidden" cond="ruleid" value="<%=Request["ruleid"] %>"/>
                <input type="hidden" cond="pattern" value="<%=Request["pattern"] %>"/>
                
                </td>
                

        		<td>会员帐号</td>
        		<td><input type="text" cond="member" value="<%=Request["member"] %>"/></td>
                
        		<td>状态</td>
        		<td><select cond="status" class="combox">
                        <option value="-1" selected="selected">--请选择--</option>
                        <option value="0" <%=Request["status"]=="0"?"selected='selected'":"" %>>未领取</option>
                        <option value="1" <%=Request["status"]=="1"?"selected='selected'":"" %>>已领取</option>
                        <option value="9" <%=Request["status"]=="9"?"selected='selected'":"" %>>已使用</option>
                    </select>
                 </td>
        	</tr>
        </table>
	    <div class="subBar">
			<ul>
			<li>
			    <a class="button" href="<%= Request.Path %>" onclick="ZLAN_DWZ_EX.query(this);" 
			    target="navTab" rel="<%= _framePage.NavTabId %>" title="<%= _framePage.NavTabTitle %>"><span>&nbsp;查&nbsp;询&nbsp;</span></a>
			</li>
            <li>
			    <a class="button" href="<%= Request.Path %>" onclick="ZLAN_DWZ_EX.exportFile(this);" 
			    target="dwzExport" rel="exportexcel" title="导出EXCEL"><span>导出EXCEL</span></a>
			</li>
                 <li>
			    <a class="button" href="<%= Request.Path %>" onclick="ZLAN_DWZ_EX.downloadFile(this);" 
			    target="dwzExport" rel="downloadfile" title="下载压缩文件"><span>下载二维码文件</span></a>
			</li>
			</ul>
	    </div>
	</div>
</div>
</form>

<div class="pageContent">   
   	<div class="panelBar">
		<ul class="toolBar">
        <% if (!string.IsNullOrEmpty(Request["ruleid"])){ %>
        <li><a class="add"  href="/SystemManage/Basics/Shop/Coupon/CouponTicketDetail.aspx?ruleid=<%=Request["ruleid"] %>" target="navTab" rel="CouponTicketDetail" title="优惠券明细"><span>添加</span></a></li>
        <%}%>
        <li><a class="delete" href="/SystemManage/Basics/Shop/Coupon/CouponTicketDelete.aspx" target="selectedTodo" title="请确定要删除勾选优惠券"><span>删除</span></a></li>
    	</ul>
	</div>
	<div class="tableList"   layoutH="116">
	<table class="list" targetType="navTab" asc="asc" desc="desc">
	    <thead>
			<tr>
                <th width="22px"><input type="checkbox" group="ids" class="checkboxCtrl"/></th>
				<th width="120px">编码</th>
				<th width="120px">标题</th>
				<th width="100px">面值</th>
				<th width="160px">说明</th>
				<th width="100px">状态</th>
				<th width="100px">领取时间</th>
				<th width="100px">会员帐号</th>
				<th width="120px" align=center>基本操作</th>
			</tr>
		</thead>
		<tbody>
            <asp:repeater runat="server" id="repeater1">
                <ItemTemplate>
			    <tr target="uid" rel=<%# Eval("Id")%>>
                    <td><input name="ids" value="<%#Eval("Id")%>" type="checkbox"/></td>
                    <td><%#Eval("TicketCode")%></td>
                    <td><%#Eval("Title")%></td>
                    <td><%#Eval("Amount")%></td>
                    <td><%#Eval("Memo")%></td>
                    <td><%#Eval("Status") as string == "0" ? "未领取" : ""%>
                    <%#Eval("Status") as string == "1" ? "已领取" : ""%>
                    <%#Eval("Status") as string == "9" ? "已使用" : ""%>
                    </td>
                    <td><%#string.Format("{0:yyyy-MM-dd}",Eval("GotDate"))%></td>
                    <td><%#Eval("MemberAccount")%></td>
				    <td align=center>
				        <a href="/SystemManage/Basics/Shop/Coupon/CouponTicketDetail.aspx?uid=<%# Eval("Id")%>&pattern=<%=Request["pattern"] %>" target="navTab" rel="CouponTicketDetail" title="优惠券明细">编辑</a>
				        &nbsp;&nbsp;
				        <a href="/SystemManage/Basics/Shop/Coupon/CouponTicketDelete.aspx?ids=<%# Eval("Id")%>&pattern=<%=Request["pattern"] %>" target="ajaxTodo" title="请确定要删除">删除</a>
				    </td>
			    </tr>
                </ItemTemplate>
            </asp:repeater>
		</tbody>
	</table>

	</div>
	
    
    
<%= _framePage.GetPagerContentHtml() %>
</div>